﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<%@ Register TagName="cate" Src="control/cate.ascx" TagPrefix="uc" %>
<%@ Register TagName="item" Src="control/item.ascx" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="zh-cn" http-equiv="Content-Language" />
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>拍你爱网</title>
    <link href="css/index.css" type="text/css" rel="stylesheet" />
    <link href="css/cate.css" type="text/css" rel="Stylesheet" />
    <link href="css/item.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="background-color: #fdffc6">
        <div id="header">
            <div id="logo">
                <a href="index.aspx">
                    <img alt="pinia" src="images/Logo.png" /></a>
            </div>
            <%if (Session["isLogin"] == null && !Convert.ToBoolean(Session["isLogin"]))
              { %>
            <div id="welInfo">
                <p>
                    Welcom! <a href="javascript:void(0)" onclick="showFloat()">Login</a> or <a href="javascript:void(0)"
                        onclick="showFloatR()">Registion</a>.</p>
                <!--加一个注册层-->
                <div id="divRegist" style="border: solid 10px #fdffc6; background: #fff; padding: 10px;
                    width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
                    margin: -200px 0 0 -400px;">
                    <div style="padding: 3px 15px 3px 15px; text-align: center; vertical-align: middle;
                        margin-left: auto">
                        <div>
                            用户：
                            <asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
                        </div>
                        <div>
                            密码：
                            <asp:TextBox ID="TextBox2" runat="server" TextMode="Password"> </asp:TextBox>
                        </div>
                        <div>
                            再次密码：
                            <asp:TextBox ID="TextBox3" runat="server" TextMode="Password"> </asp:TextBox>
                        </div>
                        <div>
                            邮箱地址：
                            <asp:TextBox ID="TextBox4" runat="server"> </asp:TextBox>
                        </div>
                        <br />
                        <div>
                            &nbsp; &nbsp;
                            <asp:Button ID="ButtonRegist" runat="server" Text=" 注 册 " OnClick="btnReg_Click" />&nbsp;
                            <input id="Button2" type="button" value=" 取 消 " onclick="ShowNo()" />
                        </div>
                    </div>
                </div>
                <!--加一个登录层-->
                <div id="divLogin" style="border: solid 10px #fdffc6; background: #fff; padding: 10px;
                    width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
                    margin: -200px 0 0 -400px;">
                    <div style="padding: 3px 15px 3px 15px; text-align: center; vertical-align: middle;
                        margin-left: auto">
                        <div>
                            用户：
                            <asp:TextBox ID="TxtUserName" runat="server"> </asp:TextBox>
                        </div>
                        <div>
                            密码：
                            <asp:TextBox ID="TxtUserPwd" runat="server" TextMode="Password"> </asp:TextBox>
                        </div>
                        <br />
                        <div>
                            &nbsp; &nbsp;
                            <asp:Button ID="BttLogin" runat="server" Text=" 登 陆 " OnClick="btnLogin_Click" />&nbsp;
                            <input id="BttCancel" type="button" value=" 取 消 " onclick="ShowNo()" />
                        </div>
                    </div>
                </div>
                <!--加一个半透明层-->
                <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
                    background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
                    left: 0; top: 0; display: none; overflow: hidden;">
                </div>
            </div>
            <%} %>
            <div id="searchBox">
            <%if(Session["isLogin"] != null && Convert.ToBoolean(Session["isLogin"])){ %>
                <div style="height: 25px">
                    <a href="MyInformation.aspx" style="color: Purple; float: right">Personal Information</a>
                </div>
                <% } %>
                <div id="searchBoxI">
                    <asp:TextBox ID="inputT" placeholder="Enter search term" runat="server" />
                    <asp:Button ID="inputB" runat="server" Text="Search" OnClick="inputB_Click" />
                </div>
            </div>
        </div>
    </div>
    </form>
    <div id="content">
        <asp:Panel ID="PanelLeft" CssClass="left-nav" runat="server" OnLoad="PanelLeft_Load">
            <asp:PlaceHolder ID="PlaceHolderLeft" runat="server"></asp:PlaceHolder>
        </asp:Panel>
        <asp:Panel ID="PanelRight" CssClass="right-nav" runat="server" OnLoad="PanelRight_Load">
            <asp:PlaceHolder ID="PlaceHolderRight" runat="server"></asp:PlaceHolder>
        </asp:Panel>
    </div>
    <div id="pageNum">
    </div>
    <div id="footer">
        <div id="linehr">
        </div>
        <div id="auther">
            <p>
                ©华中科技大学-拍你爱网 版权所有</p>
            <p>
                2011-2021</p>
        </div>
    </div>
    <script src="js/lib/jquery-1.5.1.js" type="text/javascript"></script>
    <script src="js/lib/ui/jquery.effects.core.js" type="text/javascript"></script>
    <script src="js/indexAction.js" type="text/javascript"></script>
</body>
</html>
